80205: Function test xfi:identical-node-set
Documentation
Owners
Name | Affiliation | Start | End | |
---|---|---|---|---|
Herm Fischer |
|
fischer@markv.com | 19-02-2008 at 00:00:00 |
Test Case Variations
V-01
Works for set of three in order.
Documentation
Inputs
- schema: facts-in-instance.xsd
- instance: tuple-instance.xml (DTS Discovery starting point) (ID=V01)
-
Function Call:
xfi:identical-node-set( (/xbrli:xbrl, //xbrli:context[@id eq 'context-vulcan'], //concept:t1[@id eq 'i2']), (/xbrli:xbrl, //xbrli:context[@id eq 'context-vulcan'], //concept:t1[@id eq 'i2']) )
(against file V01)
Outputs
-
Result test:
count( $result ) eq 1 and $result eq true()
V-02
Works for set of three, second different order.
Documentation
Inputs
- schema: facts-in-instance.xsd
- instance: tuple-instance.xml (DTS Discovery starting point) (ID=V02)
-
Function Call:
xfi:identical-node-set( (/xbrli:xbrl, //xbrli:context[@id eq 'context-vulcan'], //concept:t1[@id eq 'i2']), (/xbrli:xbrl, //concept:t1[@id eq 'i2'], //xbrli:context[@id eq 'context-vulcan']) )
(against file V02)
Outputs
-
Result test:
$result eq true()
V-03
Works for sets of three, second containing duplicate entry.
Documentation
Inputs
- schema: facts-in-instance.xsd
- instance: tuple-instance.xml (DTS Discovery starting point) (ID=V03)
-
Function Call:
xfi:identical-node-set( (/xbrli:xbrl, //xbrli:context[@id eq 'context-vulcan'], //concept:t1[@id eq 'i2']), (/xbrli:xbrl, //concept:t1[@id eq 'i2'], //xbrli:context[@id eq 'context-vulcan'], (: this is superfluous, but allowed by definition though possibly disallowed if strict set membership enforced :) /xbrli:xbrl) )
(against file V03)
Outputs
-
Result test:
$result eq true()
V-04
Works for sets of three containing different members.
Documentation
Inputs
- schema: facts-in-instance.xsd
- instance: tuple-instance.xml (DTS Discovery starting point) (ID=V04)
-
Function Call:
xfi:identical-node-set( (/xbrli:xbrl, //xbrli:context[@id eq 'context-vulcan'], //concept:t1[@id eq 'i2']), (/xbrli:xbrl, //concept:t1[@id eq 'i2'], //xbrli:context[@id eq 'context-earth']) )
(against file V04)
Outputs
-
Result test:
$result eq false()
V-05
Works for an empty set.
Documentation
Inputs
- schema: facts-in-instance.xsd
- instance: empty-instance.xml (DTS Discovery starting point) (ID=V05)
-
Function Call:
xfi:identical-node-set( (), ())
(against file V05)
Outputs
-
Result test:
count( $result ) eq 1 and $result eq true()
V-06
Wrong node to function
Documentation
Inputs
- schema: facts-in-instance.xsd
- instance: tuple-instance.xml (DTS Discovery starting point) (ID=V06)
-
Function Call:
xfi:identical-node-set((//xbrli:context[1]), ("hello world"))
(against file V06)
Outputs
- Error code: xqt-err:XPTY0004
Revisions
Name | On | Details |
---|---|---|
Herm Fischer | 01-04-2008 at 00:00:00 |
|
Herm Fischer | 30-01-2008 at 00:00:00 |
|